package com.shuai.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shuai.model.vo.base.BaseVo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@TableName("t_module")
@EqualsAndHashCode(callSuper = true)
public class ModuleVO extends BaseVo {
    @TableId(value = "moduleid", type = IdType.AUTO)
    private Integer moduleId;
    @TableField(value = "moduleName")
    private String moduleName;
    private String url;
    @TableField(value = "parentmoduleid")
    private Integer parentModuleId;
    @TableField(exist = false)
    private List<ModuleVO> childModuleList;
}